<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>表格</title>
</head>
<body>
<table border="1px" style="border-collapse:collapse;" width="300" height="300">
    <tr>
        <td style="text-align: center;">JOJO</td>
        <td>男</td>
        <td>18</td>
    </tr>
    <tr>
        <td>DIO</td>
        <td>男</td>
        <td>300</td>
    </tr>
</table>
<!--table>tr>tb*4-->
<table border="1px">
    <caption>表格标题</caption>
    <tr>
<!--横着合并单元格-->
        <td colspan="2">1-1</td>
<!--        <td>1-2</td>-->
        <td>1-3</td>
        <td>1-4</td>
    </tr>
    <tr>
        <td>2-1</td>
        <td>2-2</td>
<!--竖着合并单元格，被合并的单元删掉-->
        <td rowspan="3">2-3</td>
        <td>2-4</td>
    </tr>
    <tr>
        <td>3-1</td>
        <td>3-2</td>
<!--        <td>3-3</td>-->
        <td>3-4</td>
    </tr>
    <tr>
        <td>4-1</td>
        <td>4-2</td>
<!--        <td>4-3</td>-->
        <td>4-4</td>
    </tr>
</table>

<table border="1px" style="border-collapse: collapse;">
    <caption>购物车</caption>
    <tr>
        <td>编号</td>
        <td colspan="2">名称</td>
        <td>价格</td>
    </tr>
    <tr>
        <td style="text-align: center;">1</td>
        <td colspan="2">荣耀x60</td>
        <td>2601</td>
    </tr>
    <tr>
        <td style="text-align: center;">2</td>
        <td colspan="2">三折叠</td>
        <td>27399</td>
    </tr>
    <tr>
        <td>总价</td>
        <td colspan="3">30000</td>
    </tr>
</table>
</body>
</html>